<template>
	<view>
		<uni-nav-bar title="车友团规则" left-icon="left" @clickLeft="navBack" :fixed="true" statusBar></uni-nav-bar>
		<image :src="CreateImg" mode="widthFix"></image>
	</view>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { toPublish } from '@mqtt';
import { Creategroup} from '@/gql/team';
import { navBack } from '@/utils/navigator';
const CreateImg = ref('');
Creategroups()
/**
 * 车友团规则图片
 */
function Creategroups() {
  const payload = {
	query: Creategroup,
	variables: { type: 'team-guize' },
  };
  toPublish('ql/team/getAds', payload, (obj: any) => {
	uni.hideLoading();
	const { data } = obj;
	CreateImg.value = data.get_ads.imageurl;
  });
}
</script>

<style scoped lang="less">
	.u-content{
		width: 100%;
		background-color: white;
		padding: 20rpx;
		box-sizing: border-box;
		img{
			width: 100%;
			margin: 10rpx 0px;
		}
		video{
			width: 100%;
		}
	}
	image{
		width: 100%;
	}
</style>